package edu.unindra.elearning.form.addin;

import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.Insets;

import javax.swing.ImageIcon;
import javax.swing.SwingConstants;

import usu.widget.Panel;
import edu.unindra.elearning.util.ButtonImageReflection;

public class ELearningFormSubMainClass extends Panel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1320811678631342254L;

	private GridBagConstraints grid1;
	private GridBagConstraints grid2;
	private GridBagConstraints grid3;
	private GridBagConstraints grid4;

	private ButtonImageReflection btnCls1;
	private ButtonImageReflection btnCls2;
	private ButtonImageReflection btnCls3;
	private ButtonImageReflection btnCls4;
	private ButtonImageReflection btnCls5;
	private ButtonImageReflection btnCls6;

	public ELearningFormSubMainClass() {
		initComponents();
	}

	public ButtonImageReflection getBtnClass1() {
		return btnCls1;
	}

	public ButtonImageReflection getBtnClass2() {
		return btnCls2;
	}

	public ButtonImageReflection getBtnClass3() {
		return btnCls3;
	}

	public ButtonImageReflection getBtnClass4() {
		return btnCls4;
	}

	public ButtonImageReflection getBtnClass5() {
		return btnCls5;
	}

	public ButtonImageReflection getBtnClass6() {
		return btnCls6;
	}

	private void initComponents() {
		setOpaque(false);
		setLayout(new java.awt.GridBagLayout());

		btnCls1 = new ButtonImageReflection();
		btnCls1.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnCls1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		btnCls1.setIcon(new ImageIcon(ELearningFormSubMainClass.class
				.getResource("/edu/unindra/elearning/image/Notepad.png")));
		btnCls1.setText("Kelas 1");
		GridBagConstraints gbc_btnFirst = new GridBagConstraints();
		gbc_btnFirst.insets = new Insets(0, 0, 5, 5);
		gbc_btnFirst.gridx = 1;
		gbc_btnFirst.gridy = 0;
		add(btnCls1, gbc_btnFirst);

		btnCls2 = new ButtonImageReflection();
		btnCls2.setVerticalAlignment(SwingConstants.BOTTOM);
		btnCls2.setSelectedIcon(null);
		btnCls2.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnCls2.setHorizontalAlignment(SwingConstants.TRAILING);
		btnCls2.setIcon(new ImageIcon(ELearningFormSubMainClass.class
				.getResource("/edu/unindra/elearning/image/Notepad.png")));
		btnCls2.setText("Kelas 2");
		grid1 = new java.awt.GridBagConstraints();
		grid1.insets = new Insets(0, 0, 5, 5);
		grid1.gridx = 2;
		grid1.gridy = 0;
		add(btnCls2, grid1);

		btnCls3 = new ButtonImageReflection();
		btnCls3.setVerticalAlignment(SwingConstants.BOTTOM);
		btnCls3.setSelectedIcon(null);
		btnCls3.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnCls3.setHorizontalAlignment(SwingConstants.TRAILING);
		btnCls3.setIcon(new ImageIcon(ELearningFormSubMainClass.class
				.getResource("/edu/unindra/elearning/image/Notepad.png")));
		btnCls3.setText("Kelas 3");
		grid2 = new java.awt.GridBagConstraints();
		grid2.insets = new Insets(0, 0, 5, 5);
		grid2.gridx = 3;
		grid2.gridy = 0;
		add(btnCls3, grid2);

		btnCls4 = new ButtonImageReflection();
		btnCls4.setVerticalAlignment(SwingConstants.BOTTOM);
		btnCls4.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnCls4.setIcon(new ImageIcon(ELearningFormSubMainClass.class
				.getResource("/edu/unindra/elearning/image/Notepad.png")));
		btnCls4.setText("Kelas 4");
		grid3 = new java.awt.GridBagConstraints();
		grid3.insets = new Insets(0, 0, 0, 5);
		grid3.gridx = 1;
		grid3.gridy = 1;
		add(btnCls4, grid3);

		btnCls5 = new ButtonImageReflection();
		btnCls5.setVerticalAlignment(SwingConstants.BOTTOM);
		btnCls5.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnCls5.setIcon(new ImageIcon(ELearningFormSubMainClass.class
				.getResource("/edu/unindra/elearning/image/Notepad.png")));
		btnCls5.setText("Kelas 5");
		grid4 = new java.awt.GridBagConstraints();
		grid4.insets = new Insets(0, 0, 0, 5);
		grid4.gridx = 2;
		grid4.gridy = 1;
		add(btnCls5, grid4);

		btnCls6 = new ButtonImageReflection();
		btnCls6.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnCls6.setIcon(new ImageIcon(ELearningFormSubMainClass.class
				.getResource("/edu/unindra/elearning/image/Notepad.png")));
		btnCls6.setVerticalAlignment(SwingConstants.BOTTOM);
		btnCls6.setText("Kelas 6");
		GridBagConstraints gbc_btnSecond = new GridBagConstraints();
		gbc_btnSecond.gridx = 3;
		gbc_btnSecond.gridy = 1;
		add(btnCls6, gbc_btnSecond);

	}
}
